package com.hkts.naturalgas.dictionaries.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-10-25
 */
public class HktsFieldControl extends Model<HktsFieldControl> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 系数
     */
    private Float coefficient;
    /**
     * 固定值
     */
    private Float fixedValue;
    /**
     * 最大值
     */
    private Float maxValue;
    /**
     * 最小值
     */
    private Float minValue;
    /**
     * 字段id
     */
    private String itemId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Float getCoefficient() {
        return coefficient;
    }

    public void setCoefficient(Float coefficient) {
        this.coefficient = coefficient;
    }

    public Float getFixedValue() {
        return fixedValue;
    }

    public void setFixedValue(Float fixedValue) {
        this.fixedValue = fixedValue;
    }

    public Float getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(Float maxValue) {
        this.maxValue = maxValue;
    }

    public Float getMinValue() {
        return minValue;
    }

    public void setMinValue(Float minValue) {
        this.minValue = minValue;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public static final String ID = "id";

    public static final String COEFFICIENT = "coefficient";

    public static final String FIXED_VALUE = "fixed_value";

    public static final String MAX_VALUE = "max_value";

    public static final String MIN_VALUE = "min_value";

    public static final String ITEM_ID = "item_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HktsFieldControl{" +
                ", id=" + id +
                ", coefficient=" + coefficient +
                ", fixedValue=" + fixedValue +
                ", maxValue=" + maxValue +
                ", minValue=" + minValue +
                ", itemId=" + itemId +
                "}";
    }
}
